, here, the usb_class_mass_storage macro is defined in include/Linux/USB/ch9.h, and its value is 8.
Let's take 1,477th rows as an example.
1477 usual_dev (us_ SC _rb, us_pr_cb, usb_us_type_stor ),
Expand this macro, that is, define such a usb_device_id struct variable, its match_flags = struct, and binterfaceclass = usb_class_mass_storage, binterfacesubclass = us_ SC _rb, and binterfaceprotocol = us_pr_cb.
Usb_class_mass_storage does not need to be
Some friends asked why the optical drive will be stuck on the disc. In fact, it is not due to the poor quality of the disc or the aging of the optical drive laser head.
When the optical drive is reading some unclear areas of the optical drive, you need to repeat it to adjust the position and power of the optical
: 0x00000000
Device boot start end blocks ID system/Dev/sdc1 1 970 124115 B w95 FAT32Partition 1 has different physical/logical beginnings (non-Linux ?) :Phys = (0, 2, 0) logical = (0, 2, 27)
From the last few lines, we can see that the U disk is mounted under/dev/sdc1. Remember this mount point, which varies according to the Linux system.
Step 2: mount the USB
-2.6.22/drivers # cd usb/
Lfg1:/usr/src/linux-2.6.22/drivers/usb # ls
Kconfig Makefile README atm class core gadget host image misc mon
Serial storage usb-skeleton.c
Note that each directory contains a Kconfig file and Makefile, which is very important. We will introduce it later.
Our story is based on the drivers/usb
introduce it later.
Our story is based on the drivers/usb/storage directory. In fact, the code here clearly shows how the USB flash drive we frequently access is working and how it is driven. But the code in this directory does not live in a paradise. They are always closely related to the outside world. You can cont
it simply, when kthread_create () is executed, there will be two processes: one is the parent process and the other is the child process. The child process will execute usb_stor_control_thread (), while us serves as the parameter (real parameter) of the usb_stor_control_thread function, after executing usb_stor_control_thread (), the sub-process ends and it will call the exit () function to exit. The parent process continues to follow the usb_stor_acquire_resources () function. For the parent p
to track the parent and child processes separately. First look at the parent process, line 1:
811 wake_up_process (th );
To wake up a sub-process, you need to wake up the sub-process because it will not be executed immediately after you create a sub-process using kthread_create (). it will not be executed until you wake up, therefore, this function is equivalent to the voice of the referee in the track and field. The athlete will not start running
prevent the computer system from automatically playing the USB flash drive. To do this, we can follow the steps below:
First, click "start"/"run" command in the desktop of the local computer system. In the displayed system run text box, enter the string command "gpedit. msc, click OK to open the Group Policy console window for the corresponding system;
In the
Figure 1 installing Linux with a USB flash drive
Some time ago, I had a hard time installing the Linux system on a server. After I wrote the installation process below, anyone who had similar installation could complete the installation quickly, because the server's optical drive
Fedora13 has been released for nearly a week. On the first day of its release, I had to cut down the ISO files of livecd and DVD, and planned to install it on my book that night.
Unfortunately, hard disk installation was frustrated. At that time, due to work-related problems, the final compromise was achieved. Today, I finally tried again and still failed...
Fortunately, today I learned a simpler installation method-self-made USB
development board now. Therefore, if you want to use QT to detect the insertion and removal of a USB flash drive on the arm, hotplug is the right path. Do not greedy for the functions of the q6!
In this article, we will talk about how to obtain Hal or udisks messages on a PC using the q6. If you don't talk nonsense, please check the program:
. You must make such a choice. Otherwise, the installed system will be started through the USB flash drive by default. If you unplug the USB flash drive, it will not start. Experience with blood and tears ~~~~ Brother did not sele
MATERIALS:1 NASM: Compile the Assembly source code, which is available in many places on the Internet2 winhex: As a Windows system to write U disk tools, need to be genuine (full version) to have write permissions, recommended: http://down.liangchan.net/WinHex_16.7.rarSteps:1. Compile the machine code of the boot program. Compile the Assembly source code with the command line: Name boot. ASM-O boot. bin. th
Install ubuntu on a USB flash drive and start Linux from the USB flash drive.
If we install the Linux system directly on our hard disk, the GRUB of Linux will overwrite the boot guide of window. It is not convenient to carry. So
1. mount a USB flash drive or disk under a VM, network configuration under Ubuntu, switching between the graphical interface and command interface, software source configuration, and mounting ubuntuZookeeper
1. Set disk mounting (the disk is mounted to the/media directory by
Zookeeper
1. Set disk mounting (the disk is mounted to the/media directory by default)
A: insert a mobile hard drive.
B: Set the Virtual Machine (Virtual Machine-> Removable device à toshibaexternal USB 3.0 (this is shown after I inserted the mobile hard disk) à connection)
Sometimes the following phenomena occur:
C: Check the name of the storage device.
Sudofdi
Technorati label: Boot Disk
How to Create a USB flash drive and install the system with a USB flash drive (reprinted)
Many of my friends are using laptops without optical drives, but the problem also arises. When we need to reinst
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.